package com.fourth.service.impl;

import com.fourth.dao.UBbusinessInfoDao;
import com.fourth.service.UBbusinessInfoService;
import com.ljx.entity.BusinessInfo;
import com.ljx.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2023/3/2
 */
@Service
public class UBbusinessInfoServiceImpl implements UBbusinessInfoService {


    @Autowired(required = false)
    private UBbusinessInfoDao uBbusinessInfoDao;

    /**
     * 根据id修改商家信息
     * @param businessInfo
     * @return
     */
    @Override
    public Result BusRevise(BusinessInfo businessInfo) {
        int i = uBbusinessInfoDao.updateById(businessInfo);
        return new Result(2000,"商家信息修改成功",i);
    }
}
